<template>
  <div class="shareCard_bg">
    <div class="shareCard">
      <p>分享</p>
      <div class="erweima">
        <img src="../../assets/fenxiangweima.png" alt="" />
        <span>打开微信扫一扫</span>
        <button @click="showWechat">完成</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "share",
  methods: {
    showWechat() {
      this.$emit("clickWechat", false);
    },
  },
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
.shareCard_bg {
  //   background-color: #ccc;
  width: 360px;
  height: 400px;
  overflow: hidden;
  z-index: 999;
}
.shareCard {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 360px;
  height: 400px;
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  p {
    color: #538bf3;
    font-size: 20px;
  }
  .erweima {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 310px;
    background-color: #fff;
    img {
      width: 120px;
      height: 120px;
      margin: 10px auto 20px;
    }
    span {
      font-size: 14px;
    }
    button {
      width: 200px;
      height: 48px;
      border: none;
      color: #fff;
      text-align: center;
      line-height: 48px;
      border-radius: 4px;
      background-color: #538bf3;
      margin-top: 20px;
    }
  }
}
</style>
